home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12558 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: camelot.dsccc.com!kcline
  2. From: kcline@sun132.spd.dsccc.com (Kevin Cline)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 20 Mar 1996 16:23:07 GMT
  6. Organization: DSC Communications Corporation Switch Products Division
  7. Message-ID: <4ipbdb$6j7@tpd.dsccc.com>
  8. References: <JSA.96Feb16135027@organon.com> <adaworksDoBsy8.Brz@netcom.com> <4ikbar$g0k@tpd.dsccc.com> <4imqofINNn82@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: sun132.spd.dsccc.com
  10.  
  11. In article <4imqofINNn82@keats.ugrad.cs.ubc.ca>,
  12. Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  13. >In article <4ikbar$g0k@tpd.dsccc.com>,
  14. >Kevin Cline <kcline@sun132.spd.dsccc.com> wrote:
  15. > > 2. No standard interface to any OS facility more advanced
  16. > >    than line-at-a-time input/output.  Also very difficult to
  17. > >    work around, particularly if trying to produce a portable program. 
  18. >
  19. >In 1983, C had no such interface either. The C language still has no interface
  20. >to a terminal that is ``more advanced'' than line-at-a-time I/O. This is smart,
  21. >IMHO. The comp.lang.c FAQ explains the rationale behind not including ways to
  22. >do character input in the ANSI standard.
  23. >
  24. >That's what POSIX.1 is for: there is a POSIX interface standard for C as well
  25. >as Ada.
  26.  
  27. You are confusing de jure standards with de facto standards.  Both are
  28. useful.  In fact, it is often the case that de facto standards are
  29. more useful than de jure standards: consider TCP/IP vs. OSI, and
  30. PHIGS vs. OPEN-GL. 
  31.  
  32. The Ada community has been particularly slow at agreeing on de facto
  33. standards, while the C community has moved much more quickly.  Every
  34. UNIX workstation is now X-windows based and the Ada community still
  35. hasn't agreed on an API to X-windows.
  36.  
  37. Practically this meant that the same C program could be ported between
  38. compilers on the same OS, and could be ported between UNIX systems
  39. with a bit more effort.  This was not the case for Ada programs; every
  40. compiler vendor provided a different API to the POSIX.1 facilities,
  41. and until GNAT, no single compiler was available for all popular UNIX
  42. systems.
  43.  
  44. There is much to like about the Ada language, but it just isn't practical
  45. for development of medium-scale (50-100K SLOC) UNIX or PC applications
  46. with a significant system interface.  The high startup cost and portablility 
  47. problems overwhelm the advantages of more stringent compile-time 
  48. and run-time checking.  For 1M SLOC projects the advantages of Ada 
  49. may outweigh the disadvantages.
  50. -- 
  51. Kevin Cline
  52.